import fs from 'node:fs';
import path from 'path';
//引入获取配置的js

/*
  数据封装
 */
class MingchaoData {
    constructor() {
        //文件路径参数
		//插件根目录
		const __dirname =path.resolve() + path.sep + 'plugins' + path.sep + 'mingchao-plugin';
        this.filePathMap = {
            sc: path.join(__dirname, '/config/')//数据所在路径
        }
        this.sc_path = this.filePathMap.sc;
        this.sucai = JSON.parse(fs.readFileSync(`${this.sc_path}/data.json`));
    }
}
export default new MingchaoData();